<!-- 卖家中心 -->
<script setup>
import { ref } from "vue";
</script>


<template>
    <div class="main-header">
      <div class="main-header-title">卖家中心</div>
      <div class="main-header-avater">
        <div class="main-header-avater-img">
          <img src="../../assets/avater.jpg" alt="" />
        </div>
        <div class="main-header-avater-username">Designer</div>
      </div>
    </div>
    <div class="main-content">
      <div class="main-content-left">
        <div class="main-content-left-top">
          <div class="m">喵教程</div>
          <div class="r">如何售卖自抽号</div>
          <el-button class="btn" type="primary">查看教程</el-button>
        </div>
        <div class="main-content-left-digital">
          <div class="main-content-left-digital-item" v-for="(item, index) in 7">
            <div class="main-content-left-digital-item-title">待到账金额</div>
            <div class="main-content-left-digital-item-num">12,584</div>
            <div class="main-content-left-digital-item-tag">去发货</div>
          </div>
        </div>
        <div class="main-content-left-panel">
          <div class="main-content-left-panel-left">
            <div class="data">
                <span>实时数据</span>
            </div>
          </div>
          <div class="main-content-left-panel-right">
            <div class="product">
                <span>商品管理</span>
            </div>
            <div class="InitialSell">初始号售卖</div>
            <div class="SelfdrawSell">自抽号售卖</div>
          </div>
        </div>
      </div>
      <div class="main-content-right">
        <div class="main-content-right-top"></div>
        <div class="main-content-right-bottom"></div>
      </div>
    </div>
  </template>
  <style lang="scss" scoped>
  .main-header {
    width: 100%;
    height: 50px;
    background: #ffffff;
    border-radius: 12px 12px 12px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    &-title {
      margin-left: 0.8rem;
      font-size: 1rem;
      color: #333333;
      font-weight: 600;
    }
    &-avater {
      display: flex;
      align-items: center;
      &-img {
        width: 25px;
        height: 25px;
        border-radius: 3px 3px 3px 3px;
        background-color: #f5f6fa;
        overflow: hidden;
        img {
          width: 100%;
          height: 100%;
        }
      }
      &-username {
        margin-left: 0.4vw;
        font-family: Inter, Inter;
        font-weight: 400;
        font-size: 11px;
        color: #303133;
        line-height: 17px;
        text-align: left;
        font-style: normal;
        text-transform: none;
        margin-right: 1.47vw;
      }
    }
  }
  .main-content {
    margin-top: 8px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    &-left {
      // width: 930px;
      width: 100%;
  
      // 喵教程临时样式
      &-top {
        width: 100%;
        height: 138px;
        background: linear-gradient(90deg, #d0e6ff 0%, #dfeafe 100%);
        border-radius: 12px 12px 12px 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-between ;
        .m{
          margin-top: 19px;
          margin-left: 48px;
        }
        .r{
          margin: 6px 0 9px 48px;
        }
        .btn{
          width: 105px;
          height: 30px;
          margin-bottom: 18px;
          margin-left: 48px;
        }
      }
      &-digital {
        margin-top: 8px;
        width: 100%;
        height: 116px;
        background: #ffffff;
        border-radius: 12px 12px 12px 12px;
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        grid-gap: 9px;
        &-item {
          &-title {
            margin-top: 0.8vw;
            font-family: PingFang SC, PingFang SC;
            font-weight: 400;
            font-size: 12px;
            color: #303133;
            line-height: 22px;
            text-align: left;
            font-style: normal;
            text-transform: none;
            margin-left: 1vw;
          }
          &-num {
            margin-top: 0.6vw;
            font-family: D-DIN-PRO, D-DIN-PRO;
            font-weight: 600;
            font-size: 25px;
            color: #333333;
            line-height: 29px;
            text-align: left;
            font-style: normal;
            text-transform: none;
            margin-left: 1vw;
          }
          &-tag {
            font-family: PingFang SC, PingFang SC;
            font-weight: 400;
            font-size: 11px;
            color: #409eff;
            line-height: 16px;
            text-align: center;
            font-style: normal;
            text-transform: none;
            margin-left: 1vw;
          }
        }
      }
      &-panel {
        margin-top: 8px;
        width: 100%;
        display: flex;
        &-left {
          flex: 1;
          height: 428px;
          background: #ffffff;
          border-radius: 12px 12px 12px 12px;
          margin-right: 4px;
          .data{
            // width: 554px;
            height: 56px;
            // background-color: #f0d1d1;
            span{
                line-height: 56px;
                margin-left: 20px;
            }
          }
        }
        &-right {
          flex: 1;
        //   width: 594px;
          height: 428px;
          background: #ffffff;
          border-radius: 12px 12px 12px 12px;
          margin-left: 4px;
          display: flex;
          flex-direction: column;
          justify-content: space-around;
          .product{
            // width: 554px;
            height: 56px;
            // background-color: #f0d1d1;
            span{
                line-height: 56px;
                margin-left: 20px;
            }
          }
          
          .InitialSell{
            width: 90%;
            height: 150px;
            background-color: #F2F3F5;
            border-radius: 12px 12px 12px 12px;
            // margin-top: 20px;
            margin-left: 20px;
          }
          .SelfdrawSell{
            width: 90%;
            height: 150px;
            background-color: #F2F3F5;
            border-radius: 12px 12px 12px 12px;
            // margin-top: 20px;
            margin-left: 20px;
          }
        }
      }
    }
    &-right {
      margin-left: 8px;
      &-top {
        width: 310px;
        height: 315px;
        background: #ffffff;
        border-radius: 12px 12px 12px 12px;
      }
      &-bottom {
        margin-top: 8px;
        width: 310px;
        height: 133px;
        background: linear-gradient(143deg, #409eff 0%, #2fbeeb 100%);
        border-radius: 12px 12px 12px 12px;
      }
    }
  }
  </style>